package com.aa.studentmanage.main;

import com.aa.studentmanage.ui.Menu;

public class ProjectRun {
    /*
     * 登录主页面
     * */
    public static void chooseLogin() {
        int chooseNum = Menu.chooseLoginMenu();
        if (chooseNum >= 0 && chooseNum <= 2) {
            switch (chooseNum) {
                case 1: {
                    StuOperation stuOperation = new StuOperation();
                    stuOperation.stuLogin();
                    break;
                }
                case 2:{
                    AdminOperation adminOperation = new AdminOperation();
                    adminOperation.adminLogin();
                    break;
                }
                case 0:{
                    System.out.println("感谢使用,再见!");
                    System.exit(0);
                }
            }
        }
    }


    public static void main(String[] args) {
        ProjectRun run = new ProjectRun();
        run.chooseLogin();
    }
}
